import { loggerProvider } from '@app/common/constants';
import { ServicesModule } from '@app/services';
import { Logger, Module } from '@nestjs/common';
import { AccountController } from './account/account.controller';
import { ReservationController } from './reservation/reservation.controller';

@Module({
  imports: [ServicesModule],
  providers: [
    {
      provide: loggerProvider,
      useFactory: () => {
        return new Logger();
      },
    },
  ],
  controllers: [ReservationController, AccountController],
})
export class RestfulModule {}
